import request from '@/utils/request'

// 根据购物车信息生成确认单
export const generateConfirmOrder = data=>{
  return request({
    url:'/order/generateConfirmOrder',
    method:'post',
    data
  })
}

// 根据购物车信息生成订单
export const generateOrder = data=>{
  return request({
    url:'/order/generateOrder',
    method:'post',
    data
  })
}

// 用户支付成功的回调
export const paySuccess = params=>{
  return request({
    url:'/order/paySuccess',
    method:'post',
    params
  })
}